-- GENERATED SPELL FOR [Sandfury Soul Eater] --


function spell0_7247(pUnit, Event) --@Dark Offering,Heal--
pUnit:FullCastSpellOnTarget(7154,pUnit)
pUnit:RegisterEvent('Sorts_7247', 0, 1)
end

function spell1_7247(pUnit, Event) --@Soul Bite,n/a--
pUnit:FullCastSpellOnTarget(11016,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7247', 2000, 1)
end

function Sorts_7247(pUnit, Event)
local choix_sorts_7247 = math.random(0, 1)
if choix_sorts_7247 == 0 then
pUnit:RegisterEvent('spell0_7247', 1, 1)
end
if choix_sorts_7247 == 1 then
pUnit:RegisterEvent('spell1_7247', 1, 1)
end
end

function mob7247_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_7247', math.random(1500, 3000), 1)
end

function mob7247_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7247_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7247_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(7247, 1, 'mob7247_Action')
RegisterUnitEvent(7247, 2, 'mob7247_Leave')
RegisterUnitEvent(7247, 3, 'mob7247_Kill')
RegisterUnitEvent(7247, 4, 'mob7247_Die')
